package com.ruoyi.system.service.impl.smy;

import com.ruoyi.common.core.domain.smy.MallMerchantPersonalInfo;
import com.ruoyi.system.mapper.smy.MallMerchantPersonalInfoMapper;
import com.ruoyi.system.service.smy.IMallMerchantPersonalInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MallMerchantPersonalInfoServiceImpl implements IMallMerchantPersonalInfoService {

	@Resource
	private MallMerchantPersonalInfoMapper mallMerchantPersonalInfoMapper;

	/**
	 * 查询【请填写功能名称】
	 *
	 * @param id 【请填写功能名称】主键
	 * @return 【请填写功能名称】
	 */
	@Override
	public MallMerchantPersonalInfo selectMallMerchantPersonalInfoById(Long id) {
		return mallMerchantPersonalInfoMapper.selectMallMerchantPersonalInfoById(id);
	}

	/**
	 * 查询【请填写功能名称】列表
	 *
	 * @param mallMerchantPersonalInfo 【请填写功能名称】
	 * @return 【请填写功能名称】
	 */
	@Override
	public List<MallMerchantPersonalInfo> selectMallMerchantPersonalInfoList(MallMerchantPersonalInfo mallMerchantPersonalInfo) {
		return mallMerchantPersonalInfoMapper.selectMallMerchantPersonalInfoList(mallMerchantPersonalInfo);
	}

	/**
	 * 新增【请填写功能名称】
	 *
	 * @param mallMerchantPersonalInfo 【请填写功能名称】
	 * @return 结果
	 */
	@Override
	public int insertMallMerchantPersonalInfo(MallMerchantPersonalInfo mallMerchantPersonalInfo) {
		return mallMerchantPersonalInfoMapper.insertMallMerchantPersonalInfo(mallMerchantPersonalInfo);
	}

	/**
	 * 修改【请填写功能名称】
	 *
	 * @param mallMerchantPersonalInfo 【请填写功能名称】
	 * @return 结果
	 */
	@Override
	public int updateMallMerchantPersonalInfo(MallMerchantPersonalInfo mallMerchantPersonalInfo) {
		return mallMerchantPersonalInfoMapper.updateMallMerchantPersonalInfo(mallMerchantPersonalInfo);
	}

	/**
	 * 批量删除【请填写功能名称】
	 *
	 * @param ids 需要删除的【请填写功能名称】主键
	 * @return 结果
	 */
	@Override
	public int deleteMallMerchantPersonalInfoByIds(Long[] ids) {
		return mallMerchantPersonalInfoMapper.deleteMallMerchantPersonalInfoByIds(ids);
	}

	/**
	 * 删除【请填写功能名称】信息
	 *
	 * @param id 【请填写功能名称】主键
	 * @return 结果
	 */
	@Override
	public int deleteMallMerchantPersonalInfoById(Long id) {
		return mallMerchantPersonalInfoMapper.deleteMallMerchantPersonalInfoById(id);
	}
}
